<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022/8/23
  Time: 16:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员登录</title>
    <script src="js/jquery-3.4.1.min.js"></script>
    <script>
        //alert(document.cookie);
        if(self!=parent){
            parent.location=self.location;
        }
        //
        $(function () {
           $("#vcode").click(function () {
               $(this).attr("src","vcode.ques?"+Math.random());
           });
        });
    </script>
</head>
<body>
<p style="color: red">${msg}</p>
<c:remove var="msg"/>
<p>
    还没有账号? <a href="adduser.jsp">注册</a>
</p>
  <form action="login.stu" method="post">
      <fieldset>
          <legend>管理员登录</legend>
          <p>
              <input type="text" name="login" value="${cookie['loginname'].value}" required placeholder="请输入登录名,手机号或者邮箱"/>
              <input type="password" name="pass" value="${cookie['loginpass'].value}" required placeholder="请输入密码"/>
          </p>
          <p>
              <img src="vcode.ques" style="cursor: pointer" height="20px" width="60px" id="vcode" />
              <input type="text" name="code" required size="5"  />
          </p>
          <p>
              <button>登录</button>
              <button type="reset">重来</button>
              <a href="resetpassEmail.jsp" target="_blank">忘记密码？</a>
          </p>
      </fieldset>
  </form>
</body>
</html>
